package com.example.practical_training_projects.service;


import com.example.practical_training_projects.entity.collect_articles;
import com.example.practical_training_projects.mapper.collect_articlesMapper;
import com.example.practical_training_projects.vo.vousercollectarticles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class collect_articlesServicelmpl implements collect_articlesService{
    @Autowired
    private collect_articlesMapper mapper;


    @Override
    public Integer insertcollect(Integer a_uid, Integer user_uid) {
        return mapper.insertcollect(a_uid,user_uid);
    }

    @Override
    public collect_articles checkcollect(Integer a_uid, Integer user_uid) {
        return mapper.checkcollect(a_uid,user_uid);
    }

    @Override
    public Integer deletecollect(Integer a_uid, Integer user_uid) {
        return mapper.deletecollect(a_uid,user_uid);
    }

    @Override
    public List<vousercollectarticles> findusercollectarticles(Integer user_uid) {
        return mapper.findusercollectarticles(user_uid);
    }
}
